Update edittext to materialTextview
This commit is contained in:
parent
ef5c97dce1
commit
815bafaee1
|
@ -232,7 +232,7 @@ class ReproductorActivity : AppCompatActivity() {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
if (res) {
|
if (res) {
|
||||||
ManagerSingleton.Toast(getString(R.string.makedCommentaryMsg), this)
|
ManagerSingleton.Toast(getString(R.string.makedCommentaryMsg), this)
|
||||||
commentaryText.text.clear()
|
commentaryText.text?.clear()
|
||||||
this.getComments()
|
this.getComments()
|
||||||
} else {
|
} else {
|
||||||
ManagerSingleton.Toast(getString(R.string.errorCommentaryMsg), this)
|
ManagerSingleton.Toast(getString(R.string.errorCommentaryMsg), this)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
android:contentDescription="Logo"
|
android:contentDescription="Logo"
|
||||||
app:srcCompat="@mipmap/ic_launcher" />
|
app:srcCompat="@mipmap/ic_launcher" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
@ -39,11 +39,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/aboutLabel"
|
android:text="@string/aboutLabel"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse"
|
android:textAppearance="@android:style/TextAppearance.Material.Medium"
|
||||||
android:textColor="@android:color/black"
|
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
@ -55,7 +54,7 @@
|
||||||
android:textAlignment="textStart"
|
android:textAlignment="textStart"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<TextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/gitlabUrl"
|
android:id="@+id/gitlabUrl"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -66,7 +65,7 @@
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="20dp" />
|
android:layout_height="20dp" />
|
||||||
|
|
||||||
|
@ -88,7 +87,7 @@
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
@ -98,11 +97,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/aboutInstance"
|
android:text="@string/aboutInstance"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse"
|
android:textAppearance="@android:style/TextAppearance.Material.Medium"
|
||||||
android:textColor="@android:color/black"
|
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="20dp" />
|
android:layout_height="20dp" />
|
||||||
|
|
||||||
|
@ -124,7 +122,7 @@
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
@ -136,7 +134,7 @@
|
||||||
android:textAlignment="textStart"
|
android:textAlignment="textStart"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:adjustViewBounds="false"
|
android:adjustViewBounds="false"
|
||||||
android:contentDescription="@string/dislikeBtn"
|
android:contentDescription="@string/shareBtn"
|
||||||
android:cropToPadding="false"
|
android:cropToPadding="false"
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
app:srcCompat="@drawable/ic_share" />
|
app:srcCompat="@drawable/ic_share" />
|
||||||
|
@ -200,7 +200,7 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="2"
|
android:layout_weight="3"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -222,11 +222,12 @@
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/subscribeBtn"
|
android:id="@+id/subscribeBtn"
|
||||||
|
style="@style/Widget.MaterialComponents.Button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="@string/subscribeBtn"
|
android:text="@string/subscribeBtn"
|
||||||
android:textSize="10sp"
|
android:textSize="12sp"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -304,14 +305,20 @@
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
app:srcCompat="@drawable/default_avatar" />
|
app:srcCompat="@drawable/default_avatar" />
|
||||||
|
|
||||||
<EditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/commentaryText"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="2"
|
android:layout_margin="4dp"
|
||||||
android:ems="10"
|
android:layout_weight="3"
|
||||||
android:hint="@string/commentHolder"
|
android:hint="@string/commentHolder">
|
||||||
android:inputType="textMultiLine" />
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/commentaryText"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:ems="10"
|
||||||
|
android:inputType="textMultiLine" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
android:contentDescription="@string/app_name"
|
android:contentDescription="@string/app_name"
|
||||||
app:srcCompat="@mipmap/ic_launcher" />
|
app:srcCompat="@mipmap/ic_launcher" />
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
@ -39,10 +39,9 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/charging"
|
android:text="@string/charging"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse"
|
android:textAppearance="@android:style/TextAppearance.Material.Medium" />
|
||||||
android:textColor="@android:color/black" />
|
|
||||||
|
|
||||||
<Space
|
<androidx.legacy.widget.Space
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp" />
|
android:layout_height="30dp" />
|
||||||
|
|
||||||
|
|
|
@ -6,21 +6,26 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="10dp" >
|
android:padding="10dp" >
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/reportTxt"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/reportDialog"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
||||||
|
|
||||||
<EditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/reportText"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textMultiLine">
|
android:layout_margin="4dp"
|
||||||
|
android:layout_weight="3"
|
||||||
|
android:hint="@string/reportDialog">
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/reportText"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="textMultiLine" >
|
||||||
|
|
||||||
|
<requestFocus />
|
||||||
|
|
||||||
|
</com.google.android.material.textfield.TextInputEditText>
|
||||||
|
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<requestFocus />
|
|
||||||
|
|
||||||
</EditText>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -9,7 +9,7 @@
|
||||||
<string name="aboutLabel">Sobre P2Play</string>
|
<string name="aboutLabel">Sobre P2Play</string>
|
||||||
<string name="aboutText">P2Play es una aplicacion no-oficial de PeerTube. Tu puedes ver y cntribuir con el codigo en GitLab:</string>
|
<string name="aboutText">P2Play es una aplicacion no-oficial de PeerTube. Tu puedes ver y cntribuir con el codigo en GitLab:</string>
|
||||||
<string name="aboutStatus">Puedes seguir nuestro blog:</string>
|
<string name="aboutStatus">Puedes seguir nuestro blog:</string>
|
||||||
<string name="aboutLicense">Copyleft GNU GPLv3 License</string>
|
<string name="aboutLicense">GNU GPLv3 License</string>
|
||||||
<string name="aboutInstance">Sobre la instancia</string>
|
<string name="aboutInstance">Sobre la instancia</string>
|
||||||
<string name="aboutInWeb">Para ver los terminos y mas visita la web:</string>
|
<string name="aboutInWeb">Para ver los terminos y mas visita la web:</string>
|
||||||
<!-- End About strings -->
|
<!-- End About strings -->
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<string name="aboutLabel">Informazioni su P2Play</string>
|
<string name="aboutLabel">Informazioni su P2Play</string>
|
||||||
<string name="aboutText">P2Play è un\'applicazione Android non ufficiale per PeerTube. Puoi visualizzare e contribuire al codice su GitLab:</string>
|
<string name="aboutText">P2Play è un\'applicazione Android non ufficiale per PeerTube. Puoi visualizzare e contribuire al codice su GitLab:</string>
|
||||||
<string name="aboutStatus">Puoi seguire il nostro blog:</string>
|
<string name="aboutStatus">Puoi seguire il nostro blog:</string>
|
||||||
<string name="aboutLicense">Copyleft GNU GPLv3 License</string>
|
<string name="aboutLicense">GNU GPLv3 License</string>
|
||||||
<string name="aboutInstance">Informazioni sull\'istanza</string>
|
<string name="aboutInstance">Informazioni sull\'istanza</string>
|
||||||
<string name="aboutInWeb">Puoi vedere in termini ed altro sul web:</string>
|
<string name="aboutInWeb">Puoi vedere in termini ed altro sul web:</string>
|
||||||
<string name="hostInfoText">Scegliere l\'istanza</string>
|
<string name="hostInfoText">Scegliere l\'istanza</string>
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<item name="colorOnSurface">@color/md_theme_dark_onSurface</item>
|
<item name="colorOnSurface">@color/md_theme_dark_onSurface</item>
|
||||||
<item name="colorPrimaryDark">@color/colorAccent</item>
|
<item name="colorPrimaryDark">@color/colorAccent</item>
|
||||||
<item name="colorAccent">@color/md_theme_dark_onBackground</item>
|
<item name="colorAccent">@color/md_theme_dark_onBackground</item>
|
||||||
|
<item name="android:textColorLink">@color/md_theme_dark_secondary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.P2play.NoActionBar" parent="Theme.P2play">
|
<style name="Theme.P2play.NoActionBar" parent="Theme.P2play">
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<string name="aboutLabel">About P2Play</string>
|
<string name="aboutLabel">About P2Play</string>
|
||||||
<string name="aboutText">P2Play is an unofficial Android application for PeerTube. You can watch and contribute with the code on GitLab:</string>
|
<string name="aboutText">P2Play is an unofficial Android application for PeerTube. You can watch and contribute with the code on GitLab:</string>
|
||||||
<string name="aboutStatus">You can follow our blog:</string>
|
<string name="aboutStatus">You can follow our blog:</string>
|
||||||
<string name="aboutLicense">Copyleft GNU GPLv3 License</string>
|
<string name="aboutLicense">Licence GNU GPLv3 License</string>
|
||||||
<string name="aboutInstance">About instance</string>
|
<string name="aboutInstance">About instance</string>
|
||||||
<string name="aboutInWeb">You can see terms and more on the web:</string>
|
<string name="aboutInWeb">You can see terms and more on the web:</string>
|
||||||
<!-- End About strings -->
|
<!-- End About strings -->
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<item name="colorOnSurface">@color/md_theme_light_onSurface</item>
|
<item name="colorOnSurface">@color/md_theme_light_onSurface</item>
|
||||||
<item name="colorPrimaryDark">@color/md_theme_light_primary</item>
|
<item name="colorPrimaryDark">@color/md_theme_light_primary</item>
|
||||||
<item name="colorAccent">@color/md_theme_light_onPrimary</item>
|
<item name="colorAccent">@color/md_theme_light_onPrimary</item>
|
||||||
|
<item name="android:textColorLink">@color/md_theme_light_secondary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.P2play.NoActionBar" parent="Theme.P2play">
|
<style name="Theme.P2play.NoActionBar" parent="Theme.P2play">
|
||||||
|
|
Loading…
Reference in New Issue