Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
67072339
Commit
67072339
authored
Jan 25, 2021
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改PRJ
parent
98226f8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
component-print/src/main/java/com/joe/print/mvp/ui/view/KitChenPrjFoodView.java
+6
-6
library-ui/src/main/res/layout/item_radio_section_header.xml
+16
-4
No files found.
component-print/src/main/java/com/joe/print/mvp/ui/view/KitChenPrjFoodView.java
View file @
67072339
...
...
@@ -57,8 +57,8 @@ public class KitChenPrjFoodView extends LinearLayout {
private
void
init
()
{
setOrientation
(
LinearLayout
.
VERTICAL
);
for
(
PrjBean
.
DataBean
.
Bean
item
:
data
)
{
View
view
=
View
.
inflate
(
getContext
(),
R
.
layout
.
print_kitchen_item_parent
,
null
);
LinearLayout
layout
=
view
.
findViewById
(
R
.
id
.
layout_print_kitchen_parent
);
//
View view = View.inflate(getContext(), R.layout.print_kitchen_item_parent, null);
//
LinearLayout layout = view.findViewById(R.id.layout_print_kitchen_parent);
for
(
String
type
:
languageTypes
)
{
String
languageType
=
type
;
if
(
languageType
.
contains
(
"."
))
{
...
...
@@ -67,21 +67,21 @@ public class KitChenPrjFoodView extends LinearLayout {
if
(
languageType
.
equals
(
PrinterDeviceBean
.
LANGUAGE_TWO
))
{
//語言二
if
(
TextUtil
.
isNotEmptyOrNullOrUndefined
(
item
.
getProductName2
()))
{
layout
.
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName2
(),
item
.
getNumber
()));
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName2
(),
item
.
getNumber
()));
}
}
else
if
(
languageType
.
equals
(
PrinterDeviceBean
.
LANGUAGE_THREE
))
{
//語言三
if
(
TextUtil
.
isNotEmptyOrNullOrUndefined
(
item
.
getProductName3
()))
{
layout
.
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName3
(),
item
.
getNumber
()));
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName3
(),
item
.
getNumber
()));
}
}
else
{
//語言一或其他
if
(
TextUtil
.
isNotEmptyOrNullOrUndefined
(
item
.
getProductName
()))
{
layout
.
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName
(),
item
.
getNumber
()));
addView
(
getOtherLanguageView
(
item
.
getItemType
(),
item
.
getProductName
(),
item
.
getNumber
()));
}
}
}
addView
(
view
);
//
addView(view);
}
}
...
...
library-ui/src/main/res/layout/item_radio_section_header.xml
View file @
67072339
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:id=
"@+id/layout_item_select_category"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_55"
android:gravity=
"center_vertical"
...
...
@@ -27,4 +30,13 @@
android:layout_height=
"@dimen/dp_24"
android:button=
"@drawable/selector_radio_circle_bg"
/>
</LinearLayout>
</FrameLayout>
\ No newline at end of file
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_select_category"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment