質問編集履歴

7

修正

2018/11/26 08:12

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -2,15 +2,9 @@
2
2
 
3
3
  写真のようにしたい。万が一本文の中身が多い場合はタイトルの高さもその高さに合わせたい。
4
4
 
5
- ![イメージ説明](04e0c9adc80a4d180541303537230dc6.png)
6
-
7
5
 
8
6
 
9
7
  ### 発生している問題・エラーメッセージ
10
-
11
- ![イメージ説明](7b4b4e8a8a458b8e7161c5ea0769093b.png)
12
-
13
- 不備内容が3行以上にまたがる場合、不備内容のタイトルとの高さで誤差が起きてしまう。
14
8
 
15
9
  ### 該当のソースコード
16
10
 

6

修正

2018/11/26 08:12

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -156,7 +156,7 @@
156
156
 
157
157
  LinearLayoutの向きを変えるなどしてみたが分からない。
158
158
 
159
-
159
+ ListViewでやるほうができるのかなとは考えていますがやり方が
160
160
 
161
161
  ### 補足情報(FW/ツールのバージョンなど)
162
162
 

5

修正

2018/11/22 08:21

投稿

gucciyama
gucciyama

スコア13

test CHANGED
@@ -1 +1 @@
1
- 二つのTextViewを高さが異なっていても合わせたい
1
+ 二つのTextViewを高さが異なっていても統一して合わせたい
test CHANGED
File without changes

4

修正

2018/11/22 06:31

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,9 @@
14
14
 
15
15
  ### 該当のソースコード
16
16
 
17
+
18
+
17
- Java
19
+ ```Java
18
20
 
19
21
  // 連絡先一覧
20
22
 
@@ -60,6 +62,7 @@
60
62
 
61
63
 
62
64
 
65
+ ```
63
66
 
64
67
 
65
68
 
@@ -73,8 +76,7 @@
73
76
 
74
77
 
75
78
 
76
-
77
- xml
79
+ ```xml
78
80
 
79
81
 
80
82
 
@@ -146,7 +148,7 @@
146
148
 
147
149
  </ScrollView>
148
150
 
149
-
151
+ ```
150
152
 
151
153
 
152
154
 

3

画像の修正

2018/11/22 05:31

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
10
 
11
- ![イメージ説明](6570c28c379545b273c81a85d9e04dc5.png)
11
+ ![イメージ説明](7b4b4e8a8a458b8e7161c5ea0769093b.png)
12
12
 
13
13
  不備内容が3行以上にまたがる場合、不備内容のタイトルとの高さで誤差が起きてしまう。
14
14
 

2

修正

2018/11/22 05:14

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -18,37 +18,39 @@
18
18
 
19
19
  // 連絡先一覧
20
20
 
21
- LinearLayout detail = (LinearLayout)layout.findViewById(R.id.tellist_detail);
21
+ List<String[]> reworkorderlist = getReworkOrderList(mRework_id, ordcat, appsrv_cd);
22
22
 
23
- int cnt = 0;
23
+ for (String[] rework : reworkorderlist) {
24
24
 
25
- List<String[]> tellist = getTelList(mOrderId, ordcat, appsrv_cd);
25
+ LinearLayout title = (LinearLayout) layout.findViewById(R.id.reworkorderlist);
26
26
 
27
- for (String[] tel : tellist) {
27
+ LinearLayout value = (LinearLayout) layout.findViewById(R.id.reworkorderlist1);
28
28
 
29
29
  // 項目名
30
30
 
31
- TextView tv_title = new TextView(new ContextThemeWrapper(mActivity, R.style.TellListHeader2));
31
+ TextView tv_title = new TextView(new ContextThemeWrapper(mActivity, R.style.ReworkListHeader));
32
32
 
33
- tv_title.setText(tel[0]);
33
+ tv_title.setText(Html.fromHtml(rework[0] + " "));
34
34
 
35
+ tv_title.setTextSize(12);
36
+
37
+ //tv_title.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
38
+
35
- detail.addView(tv_title, cnt++);
39
+ title.addView(tv_title);
36
40
 
37
41
  // 値
38
42
 
39
- TextView tv_value = new TextView(new ContextThemeWrapper(mActivity, R.style.ListCell));
43
+ TextView tv_value = new TextView(new ContextThemeWrapper(mActivity, R.style.ReworkListCell));
40
44
 
41
45
  tv_value.setAutoLinkMask(Linkify.PHONE_NUMBERS);
42
46
 
43
- tv_value.setText(Html.fromHtml(tel[1] + " "));
47
+ tv_value.setText(Html.fromHtml(rework[1] + " "));
44
48
 
45
- tv_value.setTextSize(17);
49
+ tv_value.setTextSize(14);
46
50
 
47
- LayoutParams param = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
51
+ //tv_value.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
48
52
 
49
- detail.addView(tv_value, cnt++, param);
53
+ value.addView(tv_value);
50
-
51
-
52
54
 
53
55
 
54
56
 

1

修正

2018/11/22 04:41

投稿

gucciyama
gucciyama

スコア13

test CHANGED
File without changes
test CHANGED
@@ -76,7 +76,7 @@
76
76
 
77
77
 
78
78
 
79
- <ScrollView![イメージ説明](bb8ae5bd83d1ec40bcab244ddf507d98.png) android:id="@+id/scrollView1"
79
+ <ScrollView! android:id="@+id/scrollView1"
80
80
 
81
81
  android:layout_width="match_parent"
82
82