Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
Pasar un valor al archivo de diseño

Estoy tratando de mostrar ciertos tweets usando TweetView con fabric, pero tengo problemas para averiguar cómo enviar el valor del tweetID al archivo de diseño.

aquí hay parte del xml:

 <com.twitter.sdk.android.tweetui.TweetView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" twittersdk:tw__tweet_id="?????"/>

aquí es donde tengo el valor del tweetID

 private void render(Marker marker, View view) { ScreenResolution screenRes = deviceDimensions(); String title = marker.getTitle(); long tweetID = Long.parseLong(marker.getSnippet()); }
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

No puede pasar un valor al archivo de diseño, sino que puede establecer su valor en .java.

Según su necesidad, puede usar como:

 final LinearLayout tweet_layout = (LinearLayout) findViewById(R.id.tweet_layout); final List<Long> tweetIds = Arrays.asList(your_tweet_id); TweetUtils.loadTweets(tweetIds, new Callback<Tweet>() { @Override public void success(Result<Tweet> result) { for (Tweet tweet : result.data) { tweet_layout.addView(new TweetView(TweetActivity.this, tweet)); } } @Override public void failure(TwitterException exception) { // Do something here. } }); }
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda