Tag: ANDROID-TEXTVIEW-AUTOSIZE
Creé un archivo xml de plantilla LinearLayout, que tiene una ImageView y 2 TextViews, y estoy intentando agregarlo a mi ConstraintLayout programáticamente. Si lo agrego a un LinearLayout: val layout: LinearLayout = root.findViewById(R.id.linearLayoutBlockSequence) val inflater = LayoutInflater.from(context) val linearLayout = inflater.inflate(R.layout.linearlayout_block, null, false) as LinearLayout linearLayout.id = View.generateViewId() layout.addView(linearLayout) Funciona . . . Read more
Necesito aumentar el tamaño de archivo de un PDF sin añadir ningún texto o imagen nuevo. Puedo reducir su tamaño al comprimirlo. Cuando aumento las dimensiones del archivo de A4 a A3, A2, etc. utilizando herramientas online disponibles, se comprime automáticamente. Lo que deseo es aumentar su tamaño de 80 . . . Read more
Quiero permitir que un botón identifique qué de mis TextViews tiene el enfoque actual. Y después de eso, el botón necesita aplicar cambios al TextView enfocado. TextView textView11 = (TextView) findViewById(R.id.frame1_1); textView11.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { textView11.setBackgroundColor(Color.LTGRAY); textView11.setFocusableInTouchMode(true); textView11.requestFocus(); } }); MaterialButton pb1 = (MaterialButton) findViewById(R.id.pin_button_1); . . . Read more
Estoy intentando hacer una solicitud de fecth bastante sencilla a una de nuestras APIs de negocios (back-end que corre en .NET Core 3.1/ASP Core MVC) y me está dando un resultado inconsistente. Si la longitud del valor del token pasado a través de un campo de datos de formulario es . . . Read more
Estoy intentando crear una plantilla para una consulta de búsqueda de Mongo que devuelva todos los valores que coincidan con el tamaño dado de una propiedad de matriz. Por ejemplo, esta es la consulta para encontrar todos los documentos que contienen una matriz de tamaño 5: { arrayProperty: { $size: . . . Read more