Skip to content

Instantly share code, notes, and snippets.

View Sukhobrusov's full-sized avatar
👶
omw to the top

Sukhobrusov Sukhobrusov

👶
omw to the top
View GitHub Profile
@Sukhobrusov
Sukhobrusov / table_cut_content.xml
Created November 14, 2023 15:07
TableLayout, TextView.text with 0f width and 1 weight is cut when pressed by other views
<TableLayout
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:showDividers="beginning|middle|end"
android:padding="5dip"
android:id="@+id/table"
android:isScrollContainer="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
interface RestApi<Request, Response> {
/**
* Function that will receive [Response] from server and return [Response]
*/
fun obtainResponse(request: Request): Response
}