File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
java/nu/parley/android/view/compose Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import androidx .annotation .NonNull ;
22
22
import androidx .annotation .Nullable ;
23
- import androidx .appcompat .widget .AppCompatImageView ;
23
+ import androidx .appcompat .widget .AppCompatImageButton ;
24
24
import androidx .core .widget .ImageViewCompat ;
25
25
26
26
import java .io .File ;
39
39
40
40
public final class ComposeMediaInputView extends FrameLayout implements View .OnClickListener {
41
41
42
- private AppCompatImageView addMediaView ;
42
+ private AppCompatImageButton addMediaView ;
43
43
private ParleyLaunchCallback launchCallback ;
44
44
45
45
private File currentPhotoPath ;
@@ -64,7 +64,7 @@ private void init() {
64
64
65
65
addMediaView = findViewById (R .id .add_media_view );
66
66
67
- setOnClickListener (this );
67
+ addMediaView . setOnClickListener (this );
68
68
}
69
69
70
70
@ Nullable
Original file line number Diff line number Diff line change 34
34
android : layout_width =" wrap_content"
35
35
android : layout_height =" wrap_content"
36
36
android : layout_gravity =" end|bottom"
37
- android : contentDescription = " @string/parley_accessibility_photo_button " />
37
+ />
38
38
</FrameLayout >
39
39
40
40
<com .google.android.material.floatingactionbutton.FloatingActionButton
Original file line number Diff line number Diff line change 5
5
android : layout_height =" wrap_content"
6
6
android : layout_gravity =" center" >
7
7
8
- <androidx .appcompat.widget.AppCompatImageView
8
+ <androidx .appcompat.widget.AppCompatImageButton
9
9
android : id =" @+id/add_media_view"
10
10
android : layout_width =" wrap_content"
11
11
android : layout_height =" wrap_content"
12
- android : importantForAccessibility =" no"
13
- tools : src =" @drawable/parley_ic_add" />
12
+ android : background =" @null"
13
+ android : contentDescription =" @string/parley_accessibility_photo_button"
14
+ tools : src =" @drawable/parley_ic_add"
15
+ />
14
16
15
17
</FrameLayout >
Original file line number Diff line number Diff line change 31
31
<!-- Accessibility -->
32
32
<string name =" parley_accessibility_close" >Sluiten</string >
33
33
<string name =" parley_accessibility_button" >Knop</string >
34
- <string name =" parley_accessibility_photo_button" >Foto. Knop. </string >
34
+ <string name =" parley_accessibility_photo_button" >Foto</string >
35
35
<string name =" parley_accessibility_send" >Versturen</string >
36
36
<string name =" parley_accessibility_message_informational" >Informatief bericht.</string >
37
37
<string name =" parley_accessibility_message_from_you" >Bericht van jou.</string >
Original file line number Diff line number Diff line change 32
32
<!-- Accessibility -->
33
33
<string name =" parley_accessibility_close" >Close</string >
34
34
<string name =" parley_accessibility_button" >Button</string >
35
- <string name =" parley_accessibility_photo_button" >Photo. Button. </string >
35
+ <string name =" parley_accessibility_photo_button" >Photo</string >
36
36
<string name =" parley_accessibility_send" >Send</string >
37
37
<string name =" parley_accessibility_message_informational" >Informational message.</string >
38
38
<string name =" parley_accessibility_message_from_you" >Message from you.</string >
You can’t perform that action at this time.
0 commit comments